package cate.common.table.activity.heroroad.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.heroroad.row.HeroRoadTaskRow;

import java.util.ArrayList;
import java.util.List;

public class HeroRoadTaskSheet extends ESheet<HeroRoadTaskRow> {
    @Override
    public String getSheetName() {
        return "任务";
    }

    public List<Integer> getDayTaskIds(int group, int day) {
        List<Integer> taskIds = new ArrayList<>();
        for (HeroRoadTaskRow row : this.getList()) {
            if (row.group == group && row.day == day) {
                taskIds.add(row.taskId);
            }
        }
        return taskIds;
    }
}
